home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d12 / jaz_clib.arc / WSEARCH.C < prev   
Text File  |  1989-04-09  |  327b  |  18 lines

  1. /* return a pointer to a window number or nil */
  2. #include <jzscreen.h>
  3. extern THEADER g_header;
  4. TWINDOW *wsearch(fnum)
  5. int fnum;
  6. {
  7.   THEADER wptr;
  8.  
  9.   wptr = g_header;
  10.  
  11.   while (wptr.first)
  12.     if (wptr.first->number == (char) fnum) return(wptr.first);
  13.     else wptr.first = wptr.first->next;
  14.  
  15.   return(0);
  16. }
  17.  
  18.